home *** CD-ROM | disk | FTP | other *** search
Wrap
Depreciation,132,150 rem (C) Copyright 1995 AlphaBlox Corporation BEGIN rem button attributes // memory FONT,Memory,16,0,0,0,600,0,0,0,0,1,2,2,34,Arial TEXTCOLOR,Memory,0,0,0 KEYCOLOR,Memory,0,255,0 // numbers FONT,Number,-17,0,0,0,900,0,0,0,0,1,2,2,34,Arial TEXTCOLOR,Number,255,255,255 KEYCOLOR,Number,0,0,255 // ops FONT,Ops,-17,0,0,0,900,0,0,0,0,1,2,2,34,Arial TEXTCOLOR,Ops,255,255,255 KEYCOLOR,Ops,255,0,255 // clear FONT,Clear,16,0,0,0,600,0,0,0,0,1,2,2,34,Arial TEXTCOLOR,Clear,0,0,0 KEYCOLOR,Clear,255,255,0 //enter FONT,Enter,17,0,0,0,700,0,0,0,0,1,2,2,34,Arial TEXTCOLOR,Enter,255,255,255 KEYCOLOR,Enter,255,0,0 //symbols BUTTONBITMAP,backspace,backspace,0 BUTTONBITMAP,root,root,0 BUTTONBITMAP,square,square,0 //business FONT,Business,16,0,0,0,600,0,0,0,0,1,2,2,34,Arial TEXTCOLOR,Business,0,0,0 KEYCOLOR,Business,192,192,192 //custom FONT,Custom,16,0,0,0,600,0,0,0,0,1,2,2,34,Arial TEXTCOLOR,Custom,255,255,255 KEYCOLOR,Custom,0,128,128 //dep FONT,Dep,16,0,0,0,600,0,0,0,0,1,2,2,34,Arial TEXTCOLOR,Dep,0,0,0 KEYCOLOR,Dep,192,192,192 //keypad look & feel FONT,Title,-8,0,0,0,700,0,0,0,0,1,2,2,34,Ms Sans Serif TEXTCOLOR,Title,255,255,255 // Solver position and group FONT,Solver,-8,0,0,0,400,0,0,0,0,1,2,2,34,Ms Sans Serif TEXTCOLOR,Solver,255,255,255 KEYCOLOR,Solver,0,0,255 SOLVER,130,21 //Global keyblox requirements MODE,4 BASE,0 FONT,Title,16,0,0,0,700,0,0,0,0,1,2,2,34,Arial TEXTCOLOR,Title,0,0,0 FONT,Title2,16,0,0,0,700,0,0,0,0,1,2,2,34,Arial TEXTCOLOR,Title2,255,255,255 BITMAP,0,0,1000,1000,calc_moon,0 BITMAP,22,22,9,9,AlphaBlox,0 TEXT,36,23,90,8,Title,"AlphaBlox" TEXT,35,22,90,8,Title2,"AlphaBlox" //instructions TEXT,4,128,125,50,Title,"empty",depmode,"Straight line - Consists of Book value, Salvage, Life and Months.","Declining Balance - Consists of Book value, Factor %, Life and Months.","SOYD - Consists of Year#, Months, Life, Book value and Salvage." TEXT,3,127,125,50,Title2,"empty",depmode,"Straight line - Consists of Book value, Salvage, Life and Months.","Declining Balance - Consists of Book value, Factor %, Life and Months.","SOYD - Consists of Year#, Months, Life, Book value and Salvage." VARIABLE,depmode=1 rem main keypad LCD,4,5,124,15 BUTTON,4,21,15,11,Memory,"M+",1,memory plus BUTTON,4,33,15,11,Memory,"M-",1,memory minus BUTTON,4,45,15,11,Memory,"MR",1,memory recall BUTTON,4,57,15,11,Memory,"MC",1,memory clear BUTTON,4,69,15,11,Memory,"MS",1,memory store BUTTON,22,33,15,11,Number,"7",0,7 BUTTON,22,45,15,11,Number,"4",0,4 BUTTON,22,57,15,11,Number,"1",0,1 BUTTON,22,69,15,11,Number,"0",0,0 BUTTON,40,33,15,11,Number,"8",0,8 BUTTON,40,45,15,11,Number,"5",0,5 BUTTON,40,57,15,11,Number,"2",0,2 BUTTON,40,69,15,11,Number,"+/-",1,plus minus BUTTON,58,33,15,11,Number,"9",0,9 BUTTON,58,45,15,11,Number,"6",0,6 BUTTON,58,57,15,11,Number,"3",0,3 BUTTON,58,69,15,11,Number,".",0,. BUTTON,76,33,15,11,Ops,"/",1,divide BUTTON,76,45,15,11,Ops,"x",1,times BUTTON,76,57,15,11,Ops,"+",1,plus BUTTON,76,69,15,11,Ops,"-",1,minus BUTTON,76,21,15,11,backspace," ",1,backspace BUTTON,94,21,15,11,Clear,"CE",1,clear BUTTON,94,33,15,11,Business,"Tax",1,tax BUTTON,94,45,15,11,Business,"%",1,percentage BUTTON,94,57,15,11,Enter,"Ent",1,enter BUTTON,94,69,33,11,Enter,"=",1,equals BUTTON,112,21,15,11,Clear,"AC",1,clear all BUTTON,112,33,15,11,square," ",1,square BUTTON,112,45,15,11,root," ",1,square root BUTTON,112,57,15,11,Business,"1/x",1,invert rem depreciation BUTTON,4,82,41,10,Custom,"Book",2,"Book=if(depmode=1,salvage+((depreciation*life*12)/months),if(depmode=2,depreciation*12*100*life/(Factor*months),if(depmode=3,if(Year no=1,(depreciation*(6*life+6)/months)+salvage,0),0)))" BUTTON,46,82,40,10,Custom,"Life",2,"Life=if(depmode=1,months*(book-salvage)/(depreciation*12),if(depmode=2,book*months*Factor/(12*100*depreciation),if(depmode=3,if(Year no=1,(Months*(Book-Salvage)/(6*Depreciation))-1,0),0)))" BUTTON,87,82,40,10,Custom,"Months",2,"Months=if(depmode=1,12*depreciation*life/(book-salvage),if(depmode=2,life*12*100*depreciation/(book*Factor),if(depmode=3,if(Year no=1,depreciation*((6*life)+6)/(book-salvage),0),0)))" BUTTON,4,93,41,10,Custom,"Salvage",2,"Salvage=if(depmode=1,book-((depreciation*life*12)/months),if(depmode=2,0,if(depmode=3,if(Year no=1,book-(depreciation*((6*life)+6)/months),0),0)))" BUTTON,46,93,40,10,Custom,"Year no",2,"Year no=if(depmode=1,0,if(depmode=2,0,if(depmode=3,1,1)))" BUTTON,87,93,40,10,Custom,"Factor %",2,"Factor=if(depmode=1,0,if(depmode=2,depreciation*12*100*life/(book*months),if(depmode=3,0,0)))" BUTTON,4,104,123,10,Custom,"Depreciation",2,"Depreciation=if(depmode=1,((book-salvage)/life)*months/12,if(depmode=2,book*(Factor/(100*life))*months/12,if(depmode=3,if(Year no=1,months,12*(life-(months/12)-Year no+2)/life)*(book-salvage)/(5*life+life+6),0)))" //dep mode BUTTON,4,116,35,10,Dep,"SL",4,depmode=1 BUTTON,48,116,35,10,Dep,"DB",4,depmode=2 BUTTON,92,116,35,10,Dep,"SOYD",4,depmode=3 END